<?php

namespace App\Policies;

use App\Models\User;
use App\Models\BankCard;
use Illuminate\Auth\Access\HandlesAuthorization;

class BankCardPolicy
{
    use HandlesAuthorization;
    
    public function own(User $user, BankCard $card)
    {
	    return $user->id === $card->user_id;
    }
}

